package com.ruoyi.contract.mapper;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.contract.domain.IceBase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.io.Serializable;

/**
* @author 姚煜峰
* @description 针对表【ice_base】的数据库操作Mapper
* @createDate 2023-07-19 08:55:09
* @Entity com.ruoyi.contract.domain.IceBase
*/
public interface IceBaseMapper extends BaseMapper<IceBase> {

    @DataSource(DataSourceType.ICE)
    @Override
    IceBase selectById(Serializable id);
    
    @DataSource(DataSourceType.ICE)
    @Override
    int insert(IceBase entity);
    
    @DataSource(DataSourceType.ICE)
    @Select("select max(id) from ice_base")
    long selectMaxId();
    
    
}




